package ute.mvc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ute.mvc.dao.TestAndQuizz_StudentDAO;
import ute.mvc.model.TestAndQuizz_Student;

@Service ("testAndQuizz_StudentService")
public class TestAndQuizz_StudentServiceImpl implements TestAndQuizz_StudentService{

	@Autowired
	TestAndQuizz_StudentDAO testAndQuizz_StudentDAO;
	
	@Transactional
	public void addTestAndQuizz_Student(
			TestAndQuizz_Student testAndQuizz_Student) {
		testAndQuizz_StudentDAO.addTestAndQuizz_Student(testAndQuizz_Student);
	}
	@Transactional
	public void updateTestAndQuizz_Student(
			TestAndQuizz_Student testAndQuizz_Student) {
		testAndQuizz_StudentDAO.updateTestAndQuizz_Student(testAndQuizz_Student);
	}
	@Transactional
	public void deleteTestAndQuizz_Student(
			TestAndQuizz_Student testAndQuizz_Student) {
		testAndQuizz_StudentDAO.deleteTestAndQuizz_Student(testAndQuizz_Student);
	}
	public TestAndQuizz_Student getTestAndQuizz_Student(String id) {
		// TODO Auto-generated method stub
		return testAndQuizz_StudentDAO.getTestAndQuizz_Student(id);
	}

}
